/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package admin.action;

import admin.provider.WrapperProvider;


/**
 *
 * @author Nothing4ever
 */
public abstract class IAction<T> {

    private final WrapperProvider<T> wrapperProvider;
    private final T object;

    public IAction(WrapperProvider<T> provider, T object) {
        this.wrapperProvider = provider;
        this.object = object;
    }

    public abstract void doAction();

    protected T getObject() {
        return object;
    }

    protected WrapperProvider<T> getProvider() {
        return wrapperProvider;
    }
}
